Optimal. Leaf size=96 \[ \frac{a^2 \sqrt{c x^2} (a+b x)^{n+1}}{b^3 (n+1) x}-\frac{2 a \sqrt{c x^2} (a+b x)^{n+2}}{b^3 (n+2) x}+\frac{\sqrt{c x^2} (a+b x)^{n+3}}{b^3 (n+3) x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0287581, antiderivative size = 96, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {15, 43} \[ \frac{a^2 \sqrt{c x^2} (a+b x)^{n+1}}{b^3 (n+1) x}-\frac{2 a \sqrt{c x^2} (a+b x)^{n+2}}{b^3 (n+2) x}+\frac{\sqrt{c x^2} (a+b x)^{n+3}}{b^3 (n+3) x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 15
Rule 43
Rubi steps
\begin{align*} \int x \sqrt{c x^2} (a+b x)^n \, dx &=\frac{\sqrt{c x^2} \int x^2 (a+b x)^n \, dx}{x}\\ &=\frac{\sqrt{c x^2} \int \left (\frac{a^2 (a+b x)^n}{b^2}-\frac{2 a (a+b x)^{1+n}}{b^2}+\frac{(a+b x)^{2+n}}{b^2}\right ) \, dx}{x}\\ &=\frac{a^2 \sqrt{c x^2} (a+b x)^{1+n}}{b^3 (1+n) x}-\frac{2 a \sqrt{c x^2} (a+b x)^{2+n}}{b^3 (2+n) x}+\frac{\sqrt{c x^2} (a+b x)^{3+n}}{b^3 (3+n) x}\\ \end{align*}
Mathematica [A] time = 0.0460786, size = 68, normalized size = 0.71 \[ \frac{c x (a+b x)^{n+1} \left (2 a^2-2 a b (n+1) x+b^2 \left (n^2+3 n+2\right ) x^2\right )}{b^3 (n+1) (n+2) (n+3) \sqrt{c x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 83, normalized size = 0.9 \begin{align*}{\frac{ \left ( bx+a \right ) ^{1+n} \left ({b}^{2}{n}^{2}{x}^{2}+3\,{b}^{2}n{x}^{2}-2\,abnx+2\,{b}^{2}{x}^{2}-2\,abx+2\,{a}^{2} \right ) }{x{b}^{3} \left ({n}^{3}+6\,{n}^{2}+11\,n+6 \right ) }\sqrt{c{x}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.02689, size = 108, normalized size = 1.12 \begin{align*} \frac{{\left ({\left (n^{2} + 3 \, n + 2\right )} b^{3} \sqrt{c} x^{3} +{\left (n^{2} + n\right )} a b^{2} \sqrt{c} x^{2} - 2 \, a^{2} b \sqrt{c} n x + 2 \, a^{3} \sqrt{c}\right )}{\left (b x + a\right )}^{n}}{{\left (n^{3} + 6 \, n^{2} + 11 \, n + 6\right )} b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.44238, size = 209, normalized size = 2.18 \begin{align*} -\frac{{\left (2 \, a^{2} b n x -{\left (b^{3} n^{2} + 3 \, b^{3} n + 2 \, b^{3}\right )} x^{3} - 2 \, a^{3} -{\left (a b^{2} n^{2} + a b^{2} n\right )} x^{2}\right )} \sqrt{c x^{2}}{\left (b x + a\right )}^{n}}{{\left (b^{3} n^{3} + 6 \, b^{3} n^{2} + 11 \, b^{3} n + 6 \, b^{3}\right )} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08288, size = 270, normalized size = 2.81 \begin{align*} -{\left (\frac{2 \, a^{3} a^{n} \mathrm{sgn}\left (x\right )}{b^{3} n^{3} + 6 \, b^{3} n^{2} + 11 \, b^{3} n + 6 \, b^{3}} - \frac{{\left (b x + a\right )}^{n} b^{3} n^{2} x^{3} \mathrm{sgn}\left (x\right ) +{\left (b x + a\right )}^{n} a b^{2} n^{2} x^{2} \mathrm{sgn}\left (x\right ) + 3 \,{\left (b x + a\right )}^{n} b^{3} n x^{3} \mathrm{sgn}\left (x\right ) +{\left (b x + a\right )}^{n} a b^{2} n x^{2} \mathrm{sgn}\left (x\right ) + 2 \,{\left (b x + a\right )}^{n} b^{3} x^{3} \mathrm{sgn}\left (x\right ) - 2 \,{\left (b x + a\right )}^{n} a^{2} b n x \mathrm{sgn}\left (x\right ) + 2 \,{\left (b x + a\right )}^{n} a^{3} \mathrm{sgn}\left (x\right )}{b^{3} n^{3} + 6 \, b^{3} n^{2} + 11 \, b^{3} n + 6 \, b^{3}}\right )} \sqrt{c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]